package com.website.system.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;

import com.website.system.model.Yaopin;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DrugsMapper extends BaseMapper<Yaopin> {
    void updateStateById(@Param("id")Integer id, @Param("stateValue")Integer stateValue);
    String getSortArray(Integer type);
    List<Yaopin> getRankingFour(@Param("rowNumber")Integer rowNumber);
    int addDrugs(Yaopin yaopin);
    int updateDrugs(Integer id);

}
